home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: Alpha / Whiteline Alpha.iso / linux / atari / source / source.lzh / atari-linux-0.01pl3 / lib / _exit.c next >
Encoding:
C/C++ Source or Header  |  1994-06-05  |  556 b   |  28 lines

  1. /*
  2.  *  linux/lib/_exit.c
  3.  *
  4.  *  Copyright (C) 1991, 1992  Linus Torvalds
  5.  *
  6.  * This file is subject to the terms and conditions of the GNU General Public
  7.  * License.  See the file README.legal in the main directory of this archive
  8.  * for more details.
  9.  */
  10.  
  11. /*
  12.  * 680x0 support by Hamish Macdonald
  13.  */
  14.  
  15. #define __LIBRARY__
  16. #include <linux/unistd.h>
  17.  
  18. volatile void _exit(int exit_code)
  19. {
  20. fake_volatile:
  21.     __asm__("movel %0,d0\n\t"
  22.         "movel %1,d1\n\t"
  23.         "trap  #0"
  24.         : /* no outputs */
  25.         :"i" (__NR_exit), "g" (exit_code) : "d0", "d1");
  26.     goto fake_volatile;
  27. }
  28.